package state.practice_03;

/**
 * @author yi qiang
 * @date 2021/6/15 17:46
 */
public class StateDemo {
    public static void main(String[] args) {
        Context context=new Context(new StartState());
        System.out.println(context.getState());
        context.handle();
        System.out.println(context.getState());
        context.handle();
        System.out.println(context.getState());
        context.handle();
        System.out.println(context.getState());

    }
}
